package InheritanceAndPolymorphism.demo04;

public class Test {
    public static void main(String[] args) {
        Auto auto = new Auto(4, "蓝色", 1500);
        auto.accelerate(20);
        auto.decelerate(10);
        auto.stop();

        Car car = new Car(4, "红色", 1200, true, true);
        car.accelerate(20);
        car.decelerate(10);
        car.stop();
    }
}
